border-image: don't cache the cairo_surface_t in GtkBorderImage
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Jun 2011 14:23:36 +0000 (10:23 -0400)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 03:51:54 +0000 (05:51 +0200)
commit052d6ef6dab179bc0f5adebcd85da97821210109
tree0b7d6a5bf5d77d063618514f0e3f176269f300bf
parenta2a8d3e8f449673aef6168146fbb8c09c471e46e
border-image: don't cache the cairo_surface_t in GtkBorderImage

It's not useful to cache these surfaces here, as the GtkBorderImage will
be always generated on the fly, being a shorthand property.

This also allows to get rid of the intermediate image surfaces for
rendering the slices; we now use cairo_surface_create_for_rectangle()
to proxy the slices from the source surface to the rendered area, which
should also yield better performance.
gtk/gtkborderimage.c